#!/usr/bin/env python 
# -*- coding: utf-8 -*-
# @Time       ：2022/1/25 15:45
# @Author     ：hwl
# @File       : 01.抽象类.py
# @Description：
from abc import ABC, abstractmethod
class Talker(ABC):
    @abstractmethod
    def talk(self):
        pass

    def __test(self):
        print('test')

# print(Talker())

class Knigget(Talker):
    def talk(self):
        self.test = 1
        print(1)

k = Knigget()
k.talk()
k._Talker__test()
print(Knigget.__bases__)
print(type(k))

print(callable(k.talk))
print(callable(k.test))

